<!-- 添加 -->
<script id="tpl-add" type="text/template">
    <div class="am-padding-xs am-padding-top-sm">
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">模板名称 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" name="data[name]" value="" required>
            </div>
        </div>
		<div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">识别编号 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" name="data[app_type]" value="" required>
                <small>保持唯一，为模板插件名称，比如（test）,添加后不允许修改</small>
            </div>
        </div>
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">多门店 </label>
            <div class="am-u-sm-9 am-u-end">
				<label class="am-radio-inline">
					<input type="radio" name="data[is_many]" value="0" checked data-am-ucheck> 不支持
				</label>
                <label class="am-radio-inline">
					<input type="radio" name="data[is_many]" value="1" data-am-ucheck> 支持
				</label>
            </div>
        </div>
        <div class="am-form-group single many">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">单门店购买价格 </label>
            <div class="am-u-sm-9 am-u-end">
                <table class="am-table am-table-bordered">
					<tr>
						<th>一年</th>
						<th>二年</th>
						<th>三年</th>
						<th>四年</th>
						<th>五年</th>
					</tr>
					<tr>
						<td>
							<input type="hidden" name="data[buy_single][]" value="0">
							<input type="number" name="data[buy_single][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_single][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_single][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_single][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_single][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
					</tr>
				</table>
            </div>
        </div>
        <div class="am-form-group single many">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">单门店续费价格 </label>
            <div class="am-u-sm-9 am-u-end">
                <table class="am-table am-table-bordered">
					<tr>
						<th>一年</th>
						<th>二年</th>
						<th>三年</th>
						<th>四年</th>
						<th>五年</th>
					</tr>
					<tr>
						<td>
							<input type="number" name="data[renew_single][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_single][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_single][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_single][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_single][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
					</tr>
				</table>
            </div>
        </div>
        <div class="am-form-group single many">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">单门店代理价格 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="number" class="tpl-form-input" min="0" name="data[single_price]" value="" required>
            </div>
        </div>
		<div class="am-form-group many">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">多门店购买价格 </label>
            <div class="am-u-sm-9 am-u-end">
                <table class="am-table am-table-bordered">
					<tr>
						<th>一年</th>
						<th>二年</th>
						<th>三年</th>
						<th>四年</th>
						<th>五年</th>
					</tr>
					<tr>
						<td>
							<input type="hidden" name="data[buy_many][]" value="0">
							<input type="number" name="data[buy_many][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_many][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_many][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_many][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[buy_many][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
					</tr>
				</table>
            </div>
        </div>
		<div class="am-form-group many">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">多门店续费价格 </label>
            <div class="am-u-sm-9 am-u-end">
                <table class="am-table am-table-bordered">
					<tr>
						<th>一年</th>
						<th>二年</th>
						<th>三年</th>
						<th>四年</th>
						<th>五年</th>
					</tr>
					<tr>
						<td>
							<input type="number" name="data[renew_many][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_many][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_many][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_many][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
						<td>
							<input type="number" name="data[renew_many][]" min="0" value="0" class="am-field-valid ipt-w40" required>
						</td>
					</tr>
				</table>
            </div>
        </div>
		<div class="am-form-group many">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">多门店代理价格 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="number" class="tpl-form-input" name="data[many_price]" min="0" value="" required>
            </div>
        </div>
		<div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">试用天数 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="number" min="0" class="tpl-form-input" name="data[trial_day]" value="30" required>
                <small>设置0不启用</small>
            </div>
        </div>
		<div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label">备注说明 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="text" class="tpl-form-input" name="data[detail]" value="">
            </div>
        </div>							
        <div class="am-form-group">
            <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">显示排序 </label>
            <div class="am-u-sm-9 am-u-end">
                <input type="number" class="tpl-form-input" name="data[sort]" value="100" required>
                <small>数字越小越靠前</small>
            </div>
        </div>
    </div>  
</script>
